package com.api.shopapi.service;


import com.api.shopapi.entity.GoodsAttribute;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface GoodsAttributeService {

    int insert(GoodsAttribute goodsAttribute);

    int delete(String goodsAttributeCode);

    int update(GoodsAttribute goodsAttribute);

    GoodsAttribute getByGoodsAttributeCode(String goodsAttributeCode);

    GoodsAttribute getByName(String name);

    List<GoodsAttribute> getList();

    PageInfo<GoodsAttribute> getPage(int pageNum, int pageSize, String name, int status);

    List<GoodsAttribute> getListByGoodsClassCode(String goodsClassCode);
}
